package com.example.demo.config.ben;

import com.example.demo.config.ben.enu.ResponseEnum;
import lombok.Getter;

/*
 * @Author:大力王
 * @Date:2024/6/2-02-22:33
 * 开始了
 */
@Getter
public class YamiShopBindException extends RuntimeException {
    private static final long serialVersionUID = -4137688758944857209L;
    /**
     * http状态码
     */
    private String code;

    private Object object;

    private ServerResponseEntity<?> serverResponseEntity;

    public YamiShopBindException(ResponseEnum responseEnum) {
        super();
        this.code = responseEnum.value();
    }
    /**
     * @param responseEnum
     */
    public YamiShopBindException(ResponseEnum responseEnum, String msg) {
        super();
        this.code = responseEnum.value();
    }
    public YamiShopBindException(ServerResponseEntity<?> serverResponseEntity) {
        this.serverResponseEntity = serverResponseEntity;
    }


    public YamiShopBindException(String msg) {
        super();
        this.code = ResponseEnum.SHOW_FAIL.value();
    }

    public YamiShopBindException(String msg, Object object) {
        super();
        this.code = ResponseEnum.SHOW_FAIL.value();
        this.object = object;
    }
}
